﻿/* Write a program that reads a number and prints it as a decimal number, 
 * hexadecimal number, percentage and in scientific notation. 
 * Format the output aligned right in 15 symbols.
*/

using System;

namespace _11.PrintShit
{
    class PrintShit
    {
        static void Main()
        {
            int N;
            bool iProvided = false;
            do
            {
                if (iProvided == true) Console.WriteLine("Error: invalid characters detected, input must be a VALID INTEGER NUMBER. Please try again, and stop wasting my time.\r\nValid value range is from {0} to {1}.", int.MinValue, int.MaxValue);
                else iProvided = true;
                Console.Write("Enter a number: ");
            } while (int.TryParse(Console.ReadLine(), out N) == false);

            Console.WriteLine("{0, 15} {1, 15:X4} {2, 15:P} {3, 15:G}", N, N, N, N);
        }
    }
}
